/*
 * Copyright 2007 Jeffrey Palm
 */

import java.io.*;
import java.net.*;
import java.util.*;
import java.util.List;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.border.*;

class ImagePanel extends JPanel {

  ImagePanel(String name, String url) {
    setLayout(new FlowLayout(FlowLayout.LEFT));  
    try {
      JLabel l = new JLabel(new ImageIcon(new URL(url)));
      add(l);
    } catch (Exception e) {
      e.printStackTrace();
      JLabel lab = new JLabel(name);
      Font f = new Font(lab.getFont().getName(),Font.BOLD,24);
      lab.setFont(f);
    }
  }

}